feat: add Claude Opus 4.7 support for Bedrock, Anthropic, Vertex, and OpenRouter#12133
Draft
roomote-v0[bot] wants to merge 1 commit intomainfrom
Draft
feat: add Claude Opus 4.7 support for Bedrock, Anthropic, Vertex, and OpenRouter#12133roomote-v0[bot] wants to merge 1 commit intomainfrom
roomote-v0[bot] wants to merge 1 commit intomainfrom
Conversation
… OpenRouter providers
2 tasks
|
Anyone working on merging this? Can we help? I really want to try 4.7, but also don't want to switch to other tools. It seems like a straightforward change |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #12132
Description
This PR attempts to address Issue #12132 by adding Claude Opus 4.7 model support across multiple providers. Feedback and guidance are welcome.
Changes:
packages/types/src/providers/bedrock.ts- Addedanthropic.claude-opus-4-7model entry with pricing matching Opus 4.6 (same tier). Added toBEDROCK_1M_CONTEXT_MODEL_IDSandBEDROCK_GLOBAL_INFERENCE_MODEL_IDSarrays.packages/types/src/providers/anthropic.ts- Addedclaude-opus-4-7model entry with 128K max tokens, 200K default context (extendable to 1M), reasoning budget support, image support, and tiered pricing for 1M context.packages/types/src/providers/vertex.ts- Addedclaude-opus-4-7model entry and added toVERTEX_1M_CONTEXT_MODEL_IDSarray.src/api/providers/anthropic.ts- Addedclaude-opus-4-7to all switch cases for prompt caching, 1M context beta flag support, andgetModel()tier pricing logic.src/api/providers/fetchers/openrouter.ts- Added OpenRouter model ID mapping foranthropic/claude-opus-4.7.Key details:
anthropic.claude-opus-4-7(Bedrock),claude-opus-4-7(Anthropic/Vertex)Test Procedure
Pre-Submission Checklist
Interactively review PR in Roo Code Cloud